home *** CD-ROM | disk | FTP | other *** search
- Path: server-b.cs.interbusiness.it!usenet
- From: Ennio Porro <eporro.interform@planet.it>
- Newsgroups: comp.lang.c++
- Subject: Re: BC 4.5 Calling DLL from VB and returning DOUBLE
- Date: Sun, 18 Feb 1996 01:31:59 +0100
- Organization: Centro Servizi Interbusiness
- Message-ID: <3126737F.39AA@planet.it>
- References: <3125C5D3.38B2@ix.urz.uni-heidelberg.de>
- NNTP-Posting-Host: ppp7.planet.it
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Matthias Ernst wrote:
- >
- > I called a DLL function (created with the BC 4.5 compiler) from VB (or
- > EXCEL, ACCESS) and tried to return a DOUBLE (by value).
- > It didn't work - but it works with the VISUAL C++ compiler ???
- > Is There a secret ???
-
- I think the problem is you've missed the indication to the compiler to
- export the function making it visible to other applications.
- You can do this in three ways:
-
- a) You can use the "_export" in the declaration of the function you want
- to call from other application;
- b) You can declare the function to export in the EXPORTS section of the
- file .def
- c) You can compile your dll with the option -W (that will make all the
- funcion in your code exportable.
-
- I think one of this could be the solution to your problem.
- Mail me if it's not.
-
- Regards.
-
-
- Ennio Porro
- eporro.interform@planet.it
-
-
-